﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Mozhi.Abp.Core.Offices
{
    public class NPOIMemoryStream : MemoryStream
    {
        public bool AutoClose { get; set; }

        public NPOIMemoryStream()
        {
            AutoClose = true;
        }

        public override void Close()
        {
            if (AutoClose)
                base.Close();
        }
    }
}
